package com.clinic.entity.gui;

import org.apache.commons.lang.xwork.StringUtils;

public class GuiDrug {
	
	private long drugId;
	private String name;
	private float weight;
	private int minimum;
	private GuiDrugBrand brand;
	private int totalStockCount;
	
	public boolean isAvailable() {
		return (drugId > 0 && StringUtils.isNotBlank(name) && brand != null);
	}
	
	public long getDrugId() {
		return drugId;
	}
	
	public void setDrugId(long drugId) {
		this.drugId = drugId;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public float getWeight() {
		return weight;
	}
	
	public void setWeight(float weight) {
		this.weight = weight;
	}
	
	public int getMinimum() {
		return minimum;
	}
	
	public void setMinimum(int minimum) {
		this.minimum = minimum;
	}

	public GuiDrugBrand getBrand() {
		return brand;
	}

	public void setBrand(GuiDrugBrand brand) {
		this.brand = brand;
	}

	public int getTotalStockCount() {
		return totalStockCount;
	}

	public void setTotalStockCount(int totalStockCount) {
		this.totalStockCount = totalStockCount;
	}

}
